package com.example.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;

/**
 * 
 * @TableName books
 */
@TableName(value ="books")
@Data
public class Books implements Serializable {
    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 书名
     */
    private String name;

    /**
     * 评分
     */
    private Double score;

    /**
     * 作者
     */
    private String author;

    /**
     * 分类id
     */
    private Integer sortId;

    /**
     * 描述
     */
    private String description;

    /**
     * 出版日期
     */
    private String createTime;

    /**
     * 库存
     */
    private Integer num;

    private String url;

    @TableField(exist = false)
    private String bookSort;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}